// 接口是一种能力，一种约束
(()=>{
    //定义一个接口
    interface Person{
        firstName:string //姓
        lastName:string //名
    }
    //输出姓名
    function showName(person:Person){
        return person.firstName +'----' +person.lastName
    }
    const person = {
        firstName:'李', //姓
        lastName:'森' //名
    }
    console.log(showName(person));
})()